<?php /* @author SH1 */ ?>


<div>
    <a href="<?php echo SITE_URL;?>blog/post_add"></i>登录状态表示栏</a>
<div>
<ul>
	<?php foreach ($posts as $post_list):?>
	<?php $post_list = $post_list['BlogPost'];?>
		<?php //debug($post_list);?>
    	<li>
			<div >
				<div id="user_info">
					<h1 id="user_name">ID:<?php echo "用户名";?></h1>
					<img id="user_img" src="<?php echo SITE_URL;?>img/jay_logo.png" />
				</div>
				<ul>
					<div id="post_display">
						<a href="#">
							<li id="post_title"><h2><?php echo $post_list['title'];?></h2></li>
							<li id="user_post">
								<?php echo $post_list['body'];?>
							</li>
							<li id="created"><span class=""><?php echo $post_list['created'];?></span></li>
						</a>
						<li id="user_function">
							<?php //if($userinfo):?>
								<ul>
									<li id="user_button1">
										<?php echo $this->Html->link(
														'<i class=""></i>编辑',
																					array('action' => 'edit', $post_list['id']),
																					array('escape'=>false));
										?>
									</li>
									<li id="user_button2">
										<?php echo $this->Form->postLink(
															'<i class=""></i> 删除',
																					array('action' => 'delete', $post_list['id']),
																					array('escape'=>false,'confirm' => 'Are you sure?'));
										?>
									</li>
								</ul>
							<?php //endif; ?>
						</li>

					</div>
				</ul>
			</div>
		</li>
	<?php endforeach;?>
</ul>






<!--<ul>
    <li><a href="#"></i>登录状态表示栏</a></li>
</ul>


<ul>
    <li>
        <a href="#">
        <div class="post">
            <h1>标题</h1>
            <p>
                content content content content content content content
            </p>
        </div>
        </a>
</ul>

<ul>
        <li>
        	<a href="#">编辑</a>
        </li>


        <li>
        	<a href="#">删除</a>
        </li>
</ul>
-->

<div class="cbox pager">
    <ul>
        <li><a href=""><i class="icon-chevron-left"></i></a></li>
        <li><a href="">1</a></li>
        <li><a href="">2</a></li>
        <li><a href="">3</a></li>
        <li><a href=""><i class="icon-chevron-right"></i></a></li>
    </ul>
</div>